package com.sservice.commonBusiness.service;

import com.sservice.commonBusiness.e.DataR;
import com.sservice.commonBusiness.vo.DataRVo;

import java.util.List;

/**
 * Created by byte_su@163.com on 2018/01/12.
 */
public interface DataRService {
    /**
     * 根据条件查询数据
     *
     * @param data
     * @return
     */
    List<DataR> selectBy(DataR data);
    int countBy(DataR data);

    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    int addBatch(List<DataR> list);

    /**
     *
     * @param data
     * @return
     */
    int deleteBatch(DataRVo data);

    /**
     * 按条件删除
     *
     * @param data
     * @return
     */
    int delBy(DataR data);

    int updateByPrimaryKeySelective(DataR data);

}
